git prune
命令手册Git command for pruning all unreachable objects from the object database. This command is often not used directely but as an internal command that is used by git gc. More information: https://git-scm.com/docs/git-prune.
git prune --dry-run
stdout
:git prune --verbose
git prune --progress